import request from '@/utils/request'

// 查询贡献分获得记录列表
export function listFenjilu(query) {
  return request({
    url: '/system/fenjilu/list',
    method: 'get',
    params: query
  })
}

// 查询贡献分获得记录详细
export function getFenjilu(recordsId) {
  return request({
    url: '/system/fenjilu/' + recordsId,
    method: 'get'
  })
}

// 新增贡献分获得记录
export function addFenjilu(data) {
  return request({
    url: '/system/fenjilu',
    method: 'post',
    data: data
  })
}

// 修改贡献分获得记录
export function updateFenjilu(data) {
  return request({
    url: '/system/fenjilu',
    method: 'put',
    data: data
  })
}

// 删除贡献分获得记录
export function delFenjilu(recordsId) {
  return request({
    url: '/system/fenjilu/' + recordsId,
    method: 'delete'
  })
}
